<template>
  <div>
    <cus-modal
      ref="modal"
      width="500"
      title="提示 :"
    >
      <div v-if="isEdit" style="overflow: auto; max-height: 250px; color: red">
        <div v-for="(item, index) in data" :key="index">{{ item }}</div>
      </div>
      <div v-else>
        <div style="display:flex;flex-direction: column;align-items: center;">
          <div class="mb_10" ><Icon type="ios-checkmark-circle-outline" size="35" color="#00FF00"/></div>
          <div><h3>导入成功!</h3></div>
        </div>
      </div>
      <div slot="footer">
        <slot name="footer">
        </slot>
      </div>
      <Spin size="large" fix v-if="loading"></Spin>
    </cus-modal>
  </div>
</template>

<script>

const form = {
};
export default {
  name: "excelErrorModal",
  computed: {},
  data() {
    return {
      loading: false,
      form,
      isEdit: true,
      data: [], //提交Excel效验接口返回提示err
    };
  },
  mounted() {
  },
  methods: {
    show() {
      this.loading = false;
      this.$refs["modal"].show = true;
      if(!this.isEdit) {
        setTimeout(()=>{
          // this.$router.push({
          //   path:"/view/basicData/basicDataManage/supplyInformationManage",
          // })
          this.$router.push("/login");
        },2000)
      }
    },
    //Excel报表导入取消事件
    onCancel() {
      this.$refs["modal"].show = false;
    },    
  },
  computed: {
  },
  watch: {},
};
</script>

<style lang="less" scoped>

</style>
